package com.eling.elcms.basedoc.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.commons.lang.enums.EnumUtils;

/**
 * 性别
 * 
 * @author KEN
 *
 */
@JsonSerialize(using = EnumSerializer.class)
public enum Sex {
	Male("男"), 
	Female("女");

	private String display;
	Sex(String display) {
		this.display = display;
	}
	public String getDisplay() {
		return display;
	}
	public static Sex valueOf(Integer order) {
		
		if (null == order) {
			return null;
		}
		return (Sex) EnumUtils.getEnumList(Sex.class).get(order);
	}
}
